package week8th;

public class LinkedBinaryTreeTest {
    public static void main(String[] args) {
        LinkedBinarySearchTree l = new LinkedBinarySearchTree();
        l.addElement(5);
        l.addElement(9);
        l.addElement(45);
        l.addElement(23);
        l.addElement(48);

        l.inOrderTraversal(l.root);

        System.out.println();
        System.out.println("最小值:" + l.findMin());
        System.out.println("最大值:" + l.findMax());

        l.removeElement(23);

        System.out.print("移除23:");
        l.inOrderTraversal(l.root);
    }
}
